<template>
	<view>
		<view class="">
			<view class="login">
				<view>
					<view class="tu">
						<u--input :placeholder="$t('teltransfer.huitel')" type="number" v-model="huitel"></u--input>
					</view>
					<view class="tu" style="margin-top: 20px;">
						<u--input :placeholder="$t('teltransfer.jine')" type="number" v-model="jine"></u--input>
					</view>
					<view class="tu" style="margin-top: 20px;">
						<u--input :placeholder="$t('test.psd')" type="password" v-model="pwd"></u--input>
					</view>
					<u-button type="primary" text="确定" color="#014099" style="margin-top: 30px;"
						@click="huikuan()"></u-button>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		getResponseData,
		showToastTip,
		getBaseUrl,
		getWsUrl
	} from "@/api/req.js";
	export default {
		data() {
			return {
				huitel: '',
				jine: '',
				pwd: ''

			}
		},
		methods: {
			huikuan() {
				var that = this;
				// 得到用户数据
				getResponseData("/userInfo/phoneFeeTransfer", 'get', {
					phone:this.huitel,
					price:this.jine,
					password:this.pwd
				}, function(res) {
					if (res.code == 200) {
					     uni.showToast({
					     	title:res.msg,
					     	icon: 'success',
					     	duration: 2000
					     })
					} else {
						uni.showToast({
							title: res.msg,
							icon: 'none',
							duration: 2000
						})
					}
				});
			}

		}
	}
</script>

<style>
	.tu {
		width: 475rpx;
	}

	.login {
		margin-top: 60px;
		display: flex;
		justify-content: center;
	}
</style>